package pl.krzosekm.vehicleregister.dao;

import java.util.List;

import pl.krzosekm.vehicleregister.model.User;



public class UserDAOImpl extends BaseDAO implements UserDAO {


	public void save(User user) 
	{
		getHibernateTemplate().save(user);
	}
	
	@SuppressWarnings("unchecked")
	public List<User> findAllUsers()
	{
		List<User> usersList = getHibernateTemplate().find("from User");
		return usersList;
	}

}
